package org.jeecg.common.constant;

/**
 * RabbitMq常量
 *
 * @author ZhangYu
 * @date 2023/06/17
 */
public class RabbitMqConstant {

    //--------------------------------------------------------队列--------------------------------------------------------

    /**
     * 测试队列一
     */
    public static final String TEST_QUEUE_ONE = "test_queue_one";

    /**
     * 测试队列二
     */
    public static final String TEST_QUEUE_TWO = "test_queue_two";

    //-------------------------------------------------------交换机-------------------------------------------------------

    /**
     * 广播交换机
     */
    public static final String FANOUT_EXCHANGE = "fanout_exchange";

    /**
     * 路由交换机
     */
    public static final String DIRECT_EXCHANGE = "direct_exchange";

    /**
     * 主题交换机
     */
    public static final String TOPIC_EXCHANGE = "topic_exchange";

    //--------------------------------------------------------路由--------------------------------------------------------

    /**
     * 路由一
     */
    public static final String ROUTING_ONE = "routing_one";

    /**
     * 路由二
     */
    public static final String ROUTING_TWO = "routing_two";

    /**
     * 主题路由一
     * *（星号）：可以（只能）匹配一个单词
     * #（井号）：可以匹配多个单词（或者零个）
     */
    public static final String TOPIC_ROUTING_ONE = "*.topic.#";

    /**
     * 主题路由二
     */
    public static final String TOPIC_ROUTING_TWO = "#.topic.*";

    /**
     * 主题路由三
     */
    public static final String TOPIC_ROUTING_THREE = "routing.topic.three";

}
